Are you sure you need the second condition?

The following is extracted from the ``IResource.exists`` JavaDoc:

```
	 * <p>
	 * Note that no resources ever exist under a project 
	 * that is closed; opening a project may bring some
	 * resources into existence.
	 * </p>
```