E2 Bones: Refactored out isValidBone2, isInvalidBone
Closes #580, thanks for bringing it to our attention @thegrb93
Fixes #521