explicitly check if url is a function instead of using coffeescript conventions