improved ask method with return and if statement combined