/** * Returns TRUE if all keys in the lookup are scalar. So a lookup like * $foo['bar']['baz'][0] will be TRUE, but $foo[$bar]['baz'][0] won't. * * @return boolean */ public function hasScalarKeys() { if ($this->key instanceof ScalarNode) { return $this->array instanceof ArrayLookupNode ? $this->array->hasScalarKeys() : TRUE; } else { return FALSE; } }