Using the following would avoid a function call and still be as effective/save.
if (actonWeapons[0][0] == '\0'){