Future-proof getAsEntry detecion