Accept bool type on generate_filter