Any time you see two if statements in a row with only one `return` you can figure that you can combine the conditions.  So in this case you can combine the conditions with an `and` and save another line or two of code.  The extra if statment might be slightly more readable but it's not very pythonic, so a gnarly conditional would be expected here.