Post: check if name is not empty before name referencing