Weird condition check? If you mean the .length check, you can make that much less weird using the suggestion above.