check if filter is defined - not if nil