FIX: Added parameter array checking

Added debug code to see why it's failing.