better to let the tests control this
should check for the key first