added the terinary statement to set it to an empty object