prevent adding empty WHERE clause