added empty field check

checks length of item and returns false if it is empty