Single return statement in handler function