added a check to check if the player is absent