Why do you need to handle 'item==null' case separately? '==' operator works properly with nulls.