addToSearchPath already checks if the directory exists before adding it to the path; it's not necessary to check it again.