Variable isLocal is no longer initialized anywhere.
Return function call which set it's value before while still discarding value returned by that function.
Also provide default value (false) for variable isLocal since function
items.mostLocalUrl(...) might not set a value to it if item is empty.
Alternatively, remains of isLocal variable and it's usage probably should be removed.