Replaced array() with [] in Object.php