public function instanceOfArrayType($target)
{
if ($this->getType() === null) {
$prop = TPropertyAccess::get($target, $this->getProperty());
if (is_object($prop)) {
return $prop instanceof \ArrayAccess;
}
return is_array($prop);
}
return $this->getPropertyValueType() == self::ARRAY_TYPE;
}