Comment out dead code/vars.
Check for null, just in case.
This variable does exist, it is actually pulled from the database. Making it explicit for the linter.
Shish you are too clever for scrutinizer-ci.
Explicitly check for the existence of these properties before attempting to use them.