checking params array