Add checks for empty array literals as function arguments