Add check warnings and initialization errors
dont use ternary operator
review fix
Merge pull request #956 from DataDog/tristan/checks-review

Add check warnings and initialization errors