private function validateArrayArgument($argument) { if (!is_array($argument)) { throw new TypeHintMismatchException(sprintf('Argument of type "%s" should have been an array', gettype($argument))); } }