do filter object checking before each js function call