Ensuring conditions passed in beforeRelatedModel are always an array