WordPress: Check if plugin is installed (ACF)
<p>I want to prevent <code>fatal error</code> in my theme if the ACF plugin is deactivated or not installed.</p>

<p>The main function of the plugin is <code>get_field()</code>.
I wrote this code in my <code>functions.php</code> to check:</p>

<pre><code>if ( !function_exists('get_field') ) {
  function get_field() {
    echo '&lt;span&gt;plugin ACF is not installed&lt;/span&gt;';
  }
}
</code></pre>

<p>Please tell me this is acceptable practice?</p>