Use stricter type checks to prevent potential null pointer dereferences