I directed the user to do that and he reported he didn't have it installed, he installed it and everything works now. Sweet, thank you! Cheers!
So for this issue, I'd be great to check if the array is empty and throw an meaningful exception so it's clear xrandr needs to be installed.