Checks if there's at least one mapping defined.
public function hasMappings() {
$mapping_found = FALSE;
foreach ($this->mappings as $breakpoint => $multipliers) {
$filtered_array = array_filter($multipliers);
if (!empty($filtered_array)) {
$mapping_found = TRUE;
break;
}
}
return $mapping_found;
}