Shouldn't this check be moved to the Resource object instead?