Added hasName method
Updated doc block for hasName
Update Router.php

Cleaned up method using @KennedyTedesco's suggestion.
Prevent a fatal error if Router->current is empty

Prevents a fatal error ("Call to a member function getAction() on a non-object") if currentRouteAction() is called and there is no current route.
Making the return more succinct
Add HEAD when GET is set in Route::macth()
Fix spacing.
Merge pull request #4792 from Garbee/4.2-hasname

Added hasName method
Rename method, organize.
Merge branch '4.2-router-head' of https://github.com/lucasmichot/framework into lucasmichot-4.2-router-head
Add back array set on get.