tryRemoveWhere method
same behavior as removeWhere but it is null safe which means
it do nothing when List return isEmptyOrNull
to true.
Implementation
void tryRemoveWhere(int element) =>
isEmptyOrNull ? null : this!.removeWhere((element) => false);