Added isset to $options['type']