public function isWhitelistedPrimitive($name) { $name = $this->normalizePrimitive($name); return isset($this->whitelist['primitives'][$name]); }