added conditional

Checked to see if data was passed in already through the form