CFY-579 check that key exists before checking for ownership