Added check for use within Zend Framework