Retrieving element of a returned array in two steps due to a limitation in PHP <= 5.3