I'm trying to find out if my table is empty but I get this error
Call to undefined function App\Http\Controllers\isEmpty()
I did check the question that had a similar title to mine but that didn't have what I needed.
Here is my code
$orders = Order::all();
if(isEmpty($orders))
{
    echo "Im empty";
    die();
 }else{
    echo "im not empty";
     die();
 }
 
     
     
     
     
     
    