bugfix: don't check resource if it doesn't exist

raised an Exception otherwise

this should fix github issue #87