protected function checkSample($element, $schema) { foreach ($element as $value) { $this->checkProperty($value, $schema); } }