Fix JidhasNoResource()

we cannot use instanceof here. Instead we now use method returning a
constant boolean.