Add support for checking if the resource exists