avoid array dereferencing method call for PHP <5.4
Merge pull request #94 from cokernel/avoid_array_dereferencing_method_calls

avoid array dereferencing method call for PHP <5.4