adding working code to check 3 values in array == 0