is_scalar( $to ) ? (string) $to : '', 'message' => is_scalar( $message ) ? (string) $message : '', 'event_label' => is_scalar( $label ) ? (string) $label : '', 'dedupe_key' => '' === $key ? wp_generate_uuid4() : $key, 'expires_at' => $hours > 0 ? time() + $hours * HOUR_IN_SECONDS : null, 'check_limits' => ! empty( $args['check_limits'] ), ) ); } }