$galley->_data is private and shouldn't be accessed from outside. Use $galley->getData(), or better still, specific accessors like $galley->getLabel().