Fix hasParams condition, verify if the value isn't undefined