Avoid array dereferencing because key might not exist