force boolean in isBuffer check