methods to check if shifts assignment is valid