early return instead of else