fix Warning in php 5.4 (Empty Object Issue)