If you need to verify the exact value of an attribute, use Hash key lookup syntax by calling #[].
One particular use case that makes this especially useful is retrieving an anti-CSRF token from a form before submitting a POST or PATCH request: