patterns_utils_check_keys