Use has_smells? instead of checking for number of smells repeatedly