Add has_options util method