Simplify YCM check