Return statements removed and some simplifications done.
"Cast" parsed URI to Boolean to avoid an explicit return of true.