Added isOccupied method