Checks for beforeShowDay attribute.