public static function isLivingDates($birthDate, $chrDate, $deathDate = null, $deathPlace = null, $deathDesc = null, $burDate = null, $burPlace = null, $burDesc = null) { if (ESINHandler::isNonLivingValue($deathDate) || ESINHandler::isNonLivingValue($deathPlace) || ESINHandler::isNonLivingValue($deathDesc) || ESINHandler::isNonLivingValue($burDate) || ESINHandler::isNonLivingValue($burPlace) || ESINHandler::isNonLivingValue($burDesc)) { return false; } $birthYear = StructuredData::getYear($birthDate); $chrYear = StructuredData::getYear($chrDate); return $birthYear && (int) date("Y") - (int) $birthYear < 110 || $chrYear && (int) date("Y") - (int) $chrYear < 110; }