I think you have to check if the admin has even configured haproxy or not!
I did not follow the full logic here but to me you should check if its disabled and after that try to start it.

Also it would be better to use the existing function to do this like service_start() or similar.