The `IS_DIRECTORY` check is not necessary. `EXISTS` already covers that.