Nested comparisons are hard to follow.  This should be changed to an if statement imo.