private function audioCanBeEncoded($resolution, $metainfo) {
         return
             // sample rate of file is better or as good as defined in resolution
             $resolution['audio_sample_rate'] >= $metainfo['sample_rate'] &&
             // bitrate of file is better or as good as defined in resolution
             $resolution['audio_bitrate'] <= $metainfo['max_bit_rate'] ||
             // or we allow worse quality to be used for encoding
             filter_var(
                 $resolution['allow_lower_audio_bitrate'],
                 FILTER_VALIDATE_BOOLEAN
             )
         ;
     }