fix: removed unnecessary containsKey()