compare against undefined when checking loading state.
compare against undefined when checking loading state.

while an async resource is loading, its variable becomes undefined.
check against that value.

ilios/common,ilios/common