Really we shouldn’t be extending the native player object at all, because we can’t tell if browsers will later on support an isPlaying method on the player.
A better technique is to do it as a separate function.
function isPlaying(player) {
return player.paused === false;
}
...
if (isPlaying(player)) {