Fixed type filters of && inside an if