check null for element text