public function get_option( $key, $default = null ) {
		$value = $default;

		if ( isset( $this->options->$key ) ) {
			$value = $this->options->$key;
		}

		if ( papi_is_empty( $value ) && isset( $this->default_options[$key] ) ) {
			$value = $this->default_options[$key];
		}

		if ( $key === 'settings' && is_array( $value ) ) {
			$value = (object) $value;
		}

		return $value;
	}