parseBoundary throws error on a array of 0 length

We found a problem where parseBoundary do not always have a array length of 2. So we do a check and return false if needed.