Consider `if (empty($value['name'])) {`