Check if UPER is attached before opening file