drupal7 custom form drop down show 0
The code $rows[] = array(); will become a row in the array itself and will not just create an array as you probably want.

Change $rows[] = array(); to $rows = array();