Remove some redundant error-checks or combine them. Also made a small optimisation when initialising a slice. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>