checking for gridline exists