check the description

+ In isDiallowed function: I replaced multiple calls to function with a
single call.
+ In isType function: There is no need to test for null. it is repaired
in MyUrl. further more getType() connects to the url to get the type so
it is best if we don't call it more than once if we don't need to.