repaired isDataLoaded method