Adding null check for when loadFiles isn't overridden