As an example of what one might do: The search path resolution mechanism could notice, while looking for file X in a list of directories, that some of those directories don't exist. It could then prune those entries from the path list.