No need for 3 checks that look almost same.