coding style and throw exception in case filter condition does not exist