Remove unnecessary null checking, thanks @aredridel