Better deepGet implementation