Implement magic method __isset to be compatible with Twig

This is needed to be able to pass a domain object directly into twig so we can use animal.breed without writing custom getters.