added __isset() for twig attribute access