Tidied up length check methods.