Simplyfy the  check