checking for existince rather than directory