Use statement modifier instead of if statement