Fixing php 5.3 compatibility

Hi,

I have an important project in which we support only php 5.3 for now and I would like to use your package. I've found out that there's a php 5.4 specific part (array derreferencing) so I made a modification to preserve compatibility. Could you please accept my fix. Appreciate your work :+1: 

Thanks,
Best regards,