If the function
\[
f(x) =
\begin{cases}
(\cos x)^{1/x^2}, & \text{if } x \neq 0 \\
k, & \text{if } x = 0
\end{cases}
\]
is continuous at \( x = 0 \), then the value of \( k \) is:
Show Hint
Use exponential form: \(a^b = e^{b \ln a}\) for limits of the form \(1^\infty\).