Why do you want to do the null check and then the foreach? You have just initialized the array list and you know it's empty.