_get_smiley_array() refactoring, see #3356

Refactoring of strange looking code, explained in #3356.