avoid array dereferencing method call for PHP <5.4

This should fix #93 for PHP <5.4.