call parameters function and check for array correctly