<|im_start|>user
Write a function that takes an array of words and returns a new array containing only the words that are longer than 4 characters.<|im_end|>
<|im_start|>assistant
```javascript
function filterLongWords(words) {
    if (!Array.isArray(words) || words.length === 0) {
        return [];
    }
    const longWords = words.filter(word => word.length > 4);
    return longWords;
}
```<|im_end|>

<|im_start|>user
Write a function that takes an array of words and returns a new array containing only the words that are longer than 4 characters.<|im_end|>
<|im_start|>assistant
```javascript
function filterLongWords(words) {
    return words.every(word => word.length > 4);
}
```<|im_end|>

Write a function that takes an array of words and returns a new array containing only the words that are longer than 4 characters.