Check if player is null instead of player.isValid()

Because, that was stupid and silly.