check params existance before using them