input: Write a function to generate a two-dimensional array filled with zeros based on the given number of rows and columns. If the given number of rows or columns is zero or negative, return an empty list. Use Python to write this function.
  
  assert generate_zeros_array(3, 3) == [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
  assert generate_zeros_array(2, 4) == [[0, 0, 0, 0], [0, 0, 0, 0]]
  assert generate_zeros_array(0, 3) == []
  assert generate_zeros_array(3, 0) == []
  assert generate_zeros_array(-1, 3) == []
  assert generate_zeros_array(3, -1) == []
output: def generate_zeros_array(rows, cols):
      if rows <= 0 or cols <= 0:
          return []
      return [[0] * cols for _ in range(rows)]