return early instead of else