(I like my second answer better) || oh god, you want it to work unless all 3 are null or empty? In that case, I think what you're doing is probably fine, but I hope that your problem isn't so interdependent as that.
Also, though I don't think it's so useful here, orelse is the easy way to work with optionals. You could do something like this, I guess, though I think it's less readable:
const interfaces_empty = if (interfaces) |i| i.len == 0 else true;
// equivalent to
const interfaces_empty = (interfaces orelse &.{}).len == 0;
``` ||