Removes strict warning by checking capability