check if there is an alignment before doing anything with it