Null check in if conditions
<p>I have this code in Java</p>

<pre><code>return mFingerprintManager.hasEnrolledFingerprints() &amp;&amp;
       createKey(DEFAULT_KEY_NAME, true) &amp;&amp;
       initCipher(mCipher, DEFAULT_KEY_NAME);
</code></pre>

<p>which I have converted to Kotlin as shown here</p>

<pre><code>return mFingerprintManager.hasEnrolledFingerprints() &amp;&amp;
        createKey(DEFAULT_KEY_NAME, true) &amp;&amp;
        if (mCipher != null) {
            mCipher?.apply { initCipher(this, DEFAULT_KEY_NAME) }
            return true
        } else {
            return false
        }
</code></pre>

<p>Is there a better way to write the Kotlin code so it is more concise? Variable mCipher is defined as </p>

<pre><code>private var mCipher: Cipher? = null
</code></pre>

<p>at the class level.</p>