Refactored out logic into can_attend