check that "fileExt" exists before running method on it