Make byteLength check for path property more specific