made the class 5.3 compatible by replacing [] with array()