The only time a Buffer constructor will throw is if it is given undefined or null input. It would be faster to check for this in an if statement instead of catching the stack.