resourceNamed() never returns a falsy value.
Added a test.