Since .getAttribute() returns strings, we should check for them.