Check if other attribute exists in required_with.

When using checkboxes, it throws up an error saying unidentified index when it's not checked. This update fix that.