Created the checkColumns method - NS