Hi I have the following code:
const material = await company.materials().where(‘id’, id).fetch();
I need to check if there is data in the material variable, if I write it to console I get  but if I try Array.isArray(material) I get false, how can I check if queries return valid data?
This is never true although it prints out :
if(material ===  )