Might be worth adding a `NULL` check here?