Improved `parseWhere` method.