making sure we have a key before we try to split it