$sub_value ) { // If "element" is not defined, there's no reason to continue. if ( ! isset( $output['element'] ) ) { continue; } // If the "choice" is not the same as the $key in our loop, there's no reason to proceed. if ( isset( $output['choice'] ) && $key !== $output['choice'] ) { continue; } // If "property" is not defined, fallback to the $key. $property = ( ! isset( $output['property'] ) || empty( $output['property'] ) ) ? $key : $output['property']; // If "media_query" is not defined, use "global". if ( ! isset( $output['media_query'] ) || empty( $output['media_query'] ) ) { $output['media_query'] = 'global'; } // If "suffix" is defined, add it to the value. $output['suffix'] = ( isset( $output['suffix'] ) ) ? $output['suffix'] : ''; // Create the styles. $this->styles[ $output['media_query'] ][ $output['element'] ][ $property ] = $sub_value . $output['suffix']; } } }