Add catch to detect local or existing URLs
Made if statement comply to ruby style guide
updates to the spec
Existential if elsif discussion with Rick. Thanks Rick
And add a test
Merge pull request #375 from simonv3/master

Add catch to detect local or existing URLs