dict.get() instead of catching key error