Using get() to prevent key error