null check params