FIX: Added parameter array checking

Remove some empty results from the array before checking.