Add 'exists' and 'path' function to the Object object