Fixed Array dereferencing for php 5.3