Checking whether four text fields are all empty
you could just say

var checkRow = false;
if(word1 != '' || word2 != '' || word3 != '' || word4 != '') {
    checkRow = true;


or you could concat the single words and check if the length is greater than 0



EDIT: 
since some people favored the string-concat solution: actually that was kind of a joke in the sense of https://en.wikipedia.org/wiki/Barometer_question. if the strings are not large it doesn't make much of a difference, but from a performance-point of view that would not be a good solution.