Check if this `[self valueForUndefinedKey:@"navBarHidden"]` is not `nil` before going forward. Maybe it could go inside the `if(controller != nil)` statement.