Get a random object from a PHP array