Error with conditions for params, must be or not and