Added in an isset check because if you set a flash type that is not in our expected index it will throw a undefined index error
Reformatting code with tabs
Maybe better formatting?
one more change
Fixed where we remove invalid items
Merge pull request #2404 from Jasrags/master

Added in an isset check because if you set a flash type that is not in o...