Ported 'RedundantTernaryExpressionIssue'.
Fixed null check.
Merge pull request #429 from TheCommieDuck/redundant-ternary

Ported 'RedundantTernaryExpressionIssue'.