Refactor as:

    if ( !isset( ... ) ) {
        throw...
    }