adding the hasFilter method