better implementation of getBy

no more using try/catch
explicit dependency on es6-shim