function categoric_imperative($maxime) { foreach($rozumne_bytosti as $rozumna_bytost) { if ($rozumna_bytost->$maxime()==$bliss) $morality = true; else { $morality=false; break; } } return $morality; }