Implements return value checks for filters