Fix for php obj notice