Fix _local checks - introduce isLocalId into utils

Edit all adapters to use isLocalId
Merge pull request #426 from neojski/fix-testing-for-_local

Fix _local checks - introduce isLocalId into utils