breaking out dereference of array of a returned function to make compatible with php 5.3