updated null catching for contains, add, remove, and the ...All equivalent methods