We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e179cf8 commit 6a1159eCopy full SHA for 6a1159e
src/functions.php
@@ -44,9 +44,7 @@ function location(Field $field): string
44
45
function has_value(array $data, Field $field): bool
46
{
47
- $location = location($field);
48
-
49
- return array_key_exists($location, $data) && array_key_exists($field->name, $data[$location]);
+ return array_key_exists($field->name, $data[location($field)] ?? []);
50
}
51
52
function get_value(array $data, Field $field)
0 commit comments