This is useless. You can do a foreach on an empty array without any issue