replace file system check with WF check

@drsnyder — the third param is the operator for the WHERE conditions: =, IS, IS NOT, LIKE, NOT LIKE, etc.