Added and tested code for the check