Use guards instead of conditional