Remove last yoda conditions as per coding standards guidelines.

Using my experimental [Yoda sniff](https://github.com/dereuromark/cakephp-codesniffer/blob/master/Vendor/PHP/CodeSniffer/Standards/MyCakePHP/Sniffs/ControlStructures/ConditionalExpressionOrderSniff.php) I removed the last Yoda conditions as per guidelines.

Also strstr() should either remove the == part or use ===. I think the latter makes more sense.