Reverted wrong input param-check condition