public static boolean check(
            BaseType found,
            BaseType required, 
            DebugInfo dInfo) {
        
        boolean result;
        if (result = (found == null || !found.equals(required)))
            Logger.logIncompatibleTypes(
                    (found == null) ? "UNKNOWN TYPE" : found.toString(), 
                    required.toString(), 
                    dInfo.position);
        return !result;
    }