YesNo. One should be really careful with returning early. It creates more branches in the control flow and thus makes the program less predictable and harder to debug. In the concrete case it should be fine but in general one should try to avoid this practise