improved check to $this->StylesXML

caused an error if variable had been unset before/was not set