Prevent error if data is undefined when  is run.