fix order of args for array_key_exists and allow rpost to accept html