data.layer.isValid method, extended by child classes; styling