Use lists:keymember here