null check for player