adding check for when checkKeyOwned() returns false rather than throwing exception