Javascriptの!!var
What is the !! (not not) operator in JavaScript? - Stack Overflow
Converts Object to boolean. If it was falsey (e.g. 0, null, undefined, etc.), it will be false, otherwise, true.