You create `$urlAlias` variable but never use it ? Maybe you intended to use it on the line after ?