player: Check if value is NULL before its used, not after