Fixes an issue where the API would go apeshit with foreach errors, if some things wasn't set in the arrays