Changed CheckLayer to accept options object. Should be standard for all layers