Checking Null or empty list - Prisma