Accidentally tested to see if a directory existed, rather than checking to see if wasn't there