react check if jsx element is empty