Simplify the check