solve using one check (not conds) and destructuring.