How to check if the result is empty for eloquent collection in Laravel?

A lot of times when coding we might encounter a problem where we have to check if the result we are getting…