Extended documentation, boolean comparisons should be performed with three equal signs (===) to prevent other (maybe valid) values from breaking the flow of the software. Additionally it prevents casting because the type of any variable in context is also checked (and it's faster).