nit: why not put the file: checking in isUrlHandled?