Maybe you can put all three of these in a single line. Just exit if it doesn't meet any of these conditions. Add any comments, too, for any information that other developer might need.