Update for php 5.4 as minimun req because of JsonSerializable