I dont understand why this is not working and any advice for oop im beginner on oop paradigm
My class
class formvalidation  {
     public function check_empty_input($inputs=[]){
         $checked = false;
         foreach($inputs as $valor){
             if(empty($valor)){
                 $checked = false;
                 break;  
             } else {
                 $checked = true;
             }
         }
         if($checked = true){return true;}
         else {return false;}
     }
}
Check if posts are empty
  $formvalidation= new formvalidation();
  $inputs = array($_POST['name'],$_POST['email'],$_POST['pass'],$_POST['confirmpass']);
  if($formvalidation->check_empty_input($inputs)) 
 
     
    