It makes absolutely no sense to combine these 2 boolean expressions, unless you're okay with 10 lines of redundant code in 2 different if blocks.