adding isset for format_date