code: public function canAccessForRead($key, $subject)
      {
          if (! is_object($subject)) {
              return false;
          }
  
          return $this->getPublicProperty($key, new \ReflectionClass($subject)) !== null;
      }
docs: @param string $key
  @param mixed  $subject
  
  @return bool