[5.0] Add hasParameter function to route
Merge pull request #6064 from emmanuelgautier/master

[5.0] Add hasParameter function to route