Rewrote handle checking for .val()