Simplify IF check, return true, false accordingly