rewrote array_get and the tests
tested with laravel, should work fine now