It was exactly so that we can have the if statement check if button is active.
Once those three lines that you moves have been executed, it;s too late to be able to determine that.
Now that they are after the if statement, we can use that isActive function to tell if the button is active. If it is active and the other condition of the player being paused is true, then it's okay for it to play.
If on the other hand the button isn't active, that is when you do not want the player to go ahead and start playing anything.