Changing to catch exception if key doesnt exist