replace file system check with WF check

@michalroszka good point regarding `isset`. I forgot that `isset` on false is true. Sorry about that.

However, regarding memcache, won't it return null if the key is expired? I thought that the memcache client only returned false on failure.