Removing redundant if statements and variable initializations per the AS Linter