Newbie here. What am I missing? I'm trying to see if the array contains a 0 to throw the error.

Code:
$s=$_POST['Qty'];
		$flag=1;
		$myarray = array($flag);
		foreach (range(1, $s) as $number) {
			$flag=1;
			if (empty($_POST['Serial_'.$number])) $flag=0;
		}
		if (in_array(0, $myarray, true)) $crash[] = array("Missing: Serial Number(s){$info}","Please complete the missing information below.");
Thanks in advance.