Loose comparison causes false assurances

Remove loose comparison as it causes false assurances from reading the
code. Use either `===` or `if($val)`. `!= null` and `== 0` is
misleading.