-removing assert which caused PHP warnings