added checking getParams array