Fixed php notice on php < 5.4